using FireStarter.Base;
using FireStarterModeller.BO;

namespace FireStarter.CodeGeneration.Generator
{
    public class LiteralExpression : TemplateExpression
    {
        private readonly string _literal;

        public LiteralExpression(string literal)
        {
            _literal = literal;
        }

        public string Literal
        {
            get { return _literal; }
        }

        protected override string GenerateOne(IModelStrategyMapper mapper, IModelElement modelElement)
        {
            return _literal;
        }
    }
}